﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using public_dbOpt;

namespace prjEMR22_154
{
    public partial class PatientInfo_inquire_checkedDE : Form
    {
        dbOPT dataOpt = new dbOPT();

        public PatientInfo_inquire_checkedDE()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string strhsp = PatientInfo_inquire_checked.strHspID;
            string sql = String.Format("DELETE FROM patientinfo WHERE HspID = '{0}';", strhsp);
            dataOpt.OperateData(sql);
            MessageBox.Show("删除成功。");
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void PatientInfo_inquire_checkedDE_Load(object sender, EventArgs e)
        {

        }


    }
}
